package cn.formaggie.dao;


import cn.formaggie.entity.model.roleandpermission.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionDao {
    List<Permission> getPermissionsByRoleId(@Param("roleId")Integer roleId);

    List<Permission> getPermissions();

    Boolean hasRoleInPermissions(Integer roleId);
}
